import yagmail,logging
from BeautifulReport import BeautifulReport
import unittest
class Tools():

    def rizhi(self):
        rizhi = logging.basicConfig(filename='./jiuxian.log',
                                    filemode='w+',
                                    format='%(filename)s-%(asctime)s-%(levelname)s-%(message)s',
                                    level=logging.DEBUG)
        return rizhi
    def emil(self,flie):
        emil = yagmail.SMTP(host='smtp.qq.com',user='2410811597@qq.com',password='uzwlvaboffeqecfh')
        emil.send(to='2410811597@qq.com',subject='酒仙业务',contents='今日报告，请查收',attachments=flie)
        return emil